import { defineComponent } from 'vue';
import LindadayoTerminal from '../main';

export default defineComponent({
  setup() {
    const methods = {
      initComplete(_name) {
        console.log(_name);
      },
      onExecCmd(cmdKey, command, success, failed, name) {
        console.log(cmdKey, command, name)
      }
    }
    return () => (
      <div>
        <LindadayoTerminal
          on-init-complete={methods.initComplete}
          on-exec-cmd={methods.onExecCmd}
        />
      </div>
    )
  }
})
